<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        console.log()
        //控制台输出，常用于调试
        var s ="gsfsdfsdfsdf";
        //排序函数
        function sortNumber(a,b){
            return a-b
        }
        
        let arr = [155,8,8,9,8,8,5,6,2,8,1]
        arr.sort(sortNumber)
        let arr1 = arr.join(" ")
        // join括号里加什么就以什么分割  什么不加会默认有逗号
        document.writeln(arr1)
        document.writeln(s);
        document.writeln("<h1>666666</h1>");
        let a = 123
        let b = '123'
        document.writeln(a==b) // 触发自动转换
        document.writeln(a===b)
    </script>
</body>
</html>